<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>404</title>
</head>

<body>
  <h3>页面丢了</h3>
  <div id="time">10</div>
  <script>
    let time = +document.querySelector('#time').textContent
    setInterval(() => {
      document.querySelector('#time').textContent = time--
      if (0 == time) {
        location.href = '/'
      }
    }, 1000);
  </script>
</body>

</html>